package com.sfl.api_backend.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 任务结果
 * </p>
 *
 * @author szc
 * @since 2023-01-27
 */
@Getter
@Setter
@TableName("task_result")
@NoArgsConstructor
@AllArgsConstructor
public class TaskResult implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 结果ID
     */
    @TableId
    private Integer resultId;

    /**
     * 任务ID
     */
    private Integer taskId;

    private Integer userId;

    private String predLogOut;

    private String generateLogOut;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> ErrorFiles;

    private String theerDobjPath;

    private String orginalFormat;

    private String niigzFormatPred;

    private String analysisPath;

    /**
     * 标签集ID
     */
    private Integer labelsetId;

    /**
     * 运行时间
     */
    private LocalDateTime runTime;
}
